package com.chuangke.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.chuangke.admin.data.builder.DictDataBuilder;
import com.chuangke.common.constant.SysDictTypeConstants;
import com.chuangke.common.trans.annotation.Trans;
import com.chuangke.framework.model.BasicModel;

/**
 * @date : 2023-8-25
 */
public class SysRelationGraph extends BasicModel {
	
	
    private static final long serialVersionUID = 1L;
	
	/** 起点 */
	private String source;
	/** 终点 */
	private String target;
	/** 关系 */
	@Trans(dataBuilder=DictDataBuilder.class,dictType=SysDictTypeConstants.RG_RELATION,key="relation",ref="relationName")
	private String relation;

	private String insertFlag;
	
	@TableField(exist=false)
	private Object relationName ;
	
	/** 起点 */
	@TableField(exist=false)
	private String sourceName;
	/** 终点 */
	@TableField(exist=false)
	private String targetName;
	
	/** 起点对象 */
	@TableField(exist=false)
	private Object sourceObject ;
	/** 终点对象 */
	@TableField(exist=false)
	private Object targetObject ;

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public String getRelation() {
		return relation;
	}

	public void setRelation(String relation) {
		this.relation = relation;
	}

	public Object getSourceObject() {
		return sourceObject;
	}

	public void setSourceObject(Object sourceObject) {
		this.sourceObject = sourceObject;
	}

	public Object getTargetObject() {
		return targetObject;
	}

	public void setTargetObject(Object targetObject) {
		this.targetObject = targetObject;
	}

	public Object getRelationName() {
		return relationName;
	}

	public void setRelationName(Object relationName) {
		this.relationName = relationName;
	}

	public String getSourceName() {
		return sourceName;
	}

	public void setSourceName(String sourceName) {
		this.sourceName = sourceName;
	}

	public String getTargetName() {
		return targetName;
	}

	public void setTargetName(String targetName) {
		this.targetName = targetName;
	}

	public String getInsertFlag() {
		return insertFlag;
	}

	public void setInsertFlag(String insertFlag) {
		this.insertFlag = insertFlag;
	}
}